//
//  HomeScene.h
//  ATM Killer
//
//  Created by Cloner Team on 10/5/14.
//
//

#ifndef HOME_SCENE_H
#define HOME_SCENE_H

#include "AbstractScene.h"
#include "../../model/include/model.h"

class HomeScene : public AbstractScene {
    UG_PROPERTY_FULL(MenuItemSprite*, playButton, PlayButton);
    UG_PROPERTY_FULL(MenuItemSprite*, continueButton, ContinueButton);
    UG_PROPERTY_FULL(MenuItemSprite*, rateButton, RateButton);
    UG_PROPERTY_FULL(MenuItemSprite*, facebookButton, FacebookButton);
protected:
    int startGame;
    GameModel* gameModel;
    UGLayer* backgroundLayer;
    UGLayer* mainLayer;
public:
    HomeScene();
    ~HomeScene();
    CREATE_FUNC(HomeScene);
private:
    void createLayers();
    void createLayersContent();
    
    virtual void onEnter();
    virtual void onExit();
    virtual void update(float dt);
    
    void onButtonClick(Ref* sender);
};
#endif /* defined(__ATM_Killer__HomeScene__) */
